#include "scorebutton.h"

ScoreButton::ScoreButton(QWidget * _parent, int x, int y) : QPushButton(0)
{
    this->setObjectName("scorebutton");
    this->setParent(_parent);
    this->setGeometry(x, y, 120, 80);

    // Set up stylesheet
    this->setStyleSheet("QPushButton { \n color: black; \n font-size: 18pt; \n background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgba(170, 170, 170, 150), stop: 1 rgba(130, 130, 130, 150)); \n border-style: outset; \n border-radius: 5px; \n border-width: 1px; \n border-color: rgba(100, 100, 100, 200); \n }");

    // Removes focus from the button so the left and right arrow buttons still work with the wagon
    this->setFocusPolicy(Qt::NoFocus);
}
